import { Link, Route, BrowserRouter as Router } from 'react-router-dom'
import Home from './Home'
import Login from './Login'

export default function App() {
  return (
    <Router>
      <nav>
        <Link to='/login'>登录</Link>
        <Link to='/home'>首页</Link>
      </nav>
      <Route path='/login' component={Login} />
      <Route path='/home' component={Home} />
    </Router>
  )
}
